#pragma once

#include <memory>
#include <string>

class AudioPlay {
public:
    static std::shared_ptr<AudioPlay> NewInterface();
public:
    virtual bool Open(const std::string &file) = 0;
    virtual void Close() = 0;
    virtual void Play(bool loop) = 0;
    virtual void Stop() = 0;
    virtual void Pause() = 0;
    virtual void Continue() = 0;
    virtual void Seek(double pos) = 0;
    virtual double Duration() = 0;

};